import request from '@/utils/request'

// 给病人添加病床1,修改病床状态，和病房状态，2，修改病人状态
export function planPatientBed(data) {
  return request({
    url: '/bed/insertBedByPatientId',
    method: 'post',
    data

  })
}

export function editPatientBed(data) {
  return request({
    url: '/bed/updateBedByPatientId',
    method: 'post',
    data
  })
}

export function getWardNoByBedId(data) {
  return request({
    url: '/bed/selectWardNoByBedId?id=' + data,
    method: 'get'
  })
}

export function updateBed(data){
  return request({
    url:'/bed/updateOne',
    method:'post',
    data
  })
}

export function insertBed(data){
  return request({
    url:'/bed/insertOne',
    method:'post',
    data
  })
}
